//
//  shipLabel.m
//  pa
//
//  Created by HaiJiao Chen on 12-8-26.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import "shipLabel.h"

@implementation shipLabel

-(void)drawTextInRect:(CGRect)rect
{
    CGFloat height = [[self font] leading];
    height -= 5;
    NSArray* arr = [self.text componentsSeparatedByString:@"\n"];
    for (NSUInteger i = 0; i < [arr count]; i++)
    {
        [[arr objectAtIndex:i] drawAtPoint:CGPointMake(0, height*i) withFont:self.font];
    }
}
@end
